﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DoAnQuamLy.Reports;
using DoAnQuamLy.Object;
using DoAnQuamLy.Controller;
using DevExpress.XtraReports.UserDesigner;

namespace DoAnQuamLy.GUI
{
    public partial class ReportPhieuThu : DevExpress.XtraEditors.XtraForm
    {
        public ReportPhieuThu()
        {
            InitializeComponent();
        }
        InPhieuThu x = new InPhieuThu();
        private void ReportPhieuThu_Load(object sender, EventArgs e)
        {
            xrDesignDockManager1.Initialize(xrDesignPanel1);
            xrDesignPanel1.OpenReport(x);
            xrDesignPanel1.SetCommandVisibility(ReportCommand.NewReport, CommandVisibility.None);
            xrDesignPanel1.SetCommandVisibility(ReportCommand.NewReportWizard, CommandVisibility.None);
            List<PhieuThuObject> dt = new PhieuThuController().DangKy();
            x.DataSource = dt;
        }
    }
}